package cn.kgc.vue.commons;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 课工场
 * @date 2024/4/11
 * @description  封装查询条件
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("QueryCondition")
public class QueryCondition<T> {

    @ApiModelProperty(value = "当前页",required = true,example = "1")
    private Integer page;
    @ApiModelProperty(value = "每页显示的条数",required = true,example = "5")
    private Integer limit;
    @ApiModelProperty(value = "搜索条件")
    private T searchParams;
}
